<template>
	<view>
		<view class="cellgroup">
			<u-cell-group :border="false">
				<u-cell title="修改密码" isLink @click="go('/pages/mine/setword/setword')">
					
				</u-cell>
			
				<u-cell title="用户协议" isLink @click="go('')">
					
				</u-cell>
				<u-cell title="隐私政策" isLink @click="go('')">
					
				</u-cell>
				<u-cell title="关于" isLink @click="go('')">
					
				</u-cell>
				<u-cell title="注销账号" isLink @click="go('')">
					
				</u-cell>

			</u-cell-group>


		</view>
		<view class="out" @click="goout()">退出登录</view>
	</view>
</template>

<script>

	export default {
		data() {
			return {
             
			}
		},
		onLoad() {
		},
		methods: {
			go(url) {
				if(url){
					uni.navigateTo({
						url: url
					})
				}else{
					uni.$u.toast("功能开发中")
				}
				
			},
			async goout() {
				let that=this;
				uni.showModal({
				    title: '退出登录',
				    content: '确定要退出登录吗?',
				    success: function (res) {
				        if (res.confirm) {
				            // that.sure()
							console.log('用户点击确认');
				        } else if (res.cancel) {
				            console.log('用户点击取消');
				        }
				    }
				});
				
			},	
		
		}
	}
</script>

<style lang="scss" scoped>
	.cellgroup {
		width: 682rpx;
		height: auto;
		margin: 0 auto;
		margin-top: 31rpx;
		display: flex;
		background-color: #FFFFFF;
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #333333;

		.iconSize {
			width: 42rpx;
			height: 42rpx;
		}

	}

	.out {
		width: 648rpx;
		height: 88rpx;
		border-radius: 55rpx;
		text-align: center;
		margin: 200rpx auto;
		background-color: #FE4030;
		font-size: 30rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		line-height: 88rpx;
	}
</style>